-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add S2 keys support to zwave_js config #2157
Conversation
one thought here - should we remove the autogenerate logic for the s2 keys since we are not ready to use them yet? we can keep most of the logic in place for when we are ready to generate them and it still allows users to switch between zwavejs2mqtt and zwave-js with S2 devices if they need to. It's also possible that users may not notice these new configuration options immediately and would want to generate keys on their own rather than trusting the addon (that's what I would want to do) |
Are the S2 keys somehow stored in the controller device or other devices even if no devices are included with S2? Ie, does it matter if the user changes these keys later before starting to include devices using S2? If the keys can be changed without consequences by the user before starting to include devices with S2, I don't think it matters if we auto-generate keys now. |
No and fair point |
is there anything holding this PR back from being merged? |
This looks ok, but I'd like someone that is familiar with bashio to approve before merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments are just about the docs. Docs are always opinionated, so leave, take or change my suggestions as you desire. 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"How to use" and "Configuration" sections needs adjustments
We need to support the new keys in the integration add-on management too. I'll work on that tonight. |
Here's the core PR to manage S2 keys also in the integration. It can be merged after we merge here and bump the client library used in the core (#2188). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs looks good. Someone with bashio skills should review that part.
Hmm, I'm getting this error when testing the add-on locally.
|
I fixed the error. It was just a typo in the config template. Tested and working! 🎉 |
In order to support the new key structure for zwave-js, we need to add three new keys as inputs. We will also migrate keys out of
network_key
intos0_legacy_key
to better align with this new structure.This can't be merged until zwave-js/zwave-js-server#353 is released but opening it as a draft for input
fixes #2182